export const useScale = (screenRatio16_9: boolean) => {
    const width = screenRatio16_9 ? 1920 : 3840
    const height = 1080

    const bodyWidth = document.body.clientWidth
    const bodyHeight = document.body.clientHeight
    const scaleX = bodyWidth / width
    const scaleY = bodyHeight / height
    // return {
    //     width: '100%',
    //     height: '100%',
    // }
    return {
        transformOrigin: 'left top',
        transform: `scale(${scaleX},${scaleY})`,
        position: 'absolute',
        top: 0,
        left: 0,
        width: '100%',
        height: '100%',
        pointerEvents: 'none'
    }
}
